import request from '@/utils/request'

export default {
  outList(params) {
    return request({
      url: '/v1/outList/1',
      method: 'get',
      params
    })
  },
  getOne(id) {
    return request({
      url: `/v1/out/${id}`,
      method: 'get'
    })
  },
  update(data) {
    return request({
      url: '/v1/outUpdate',
      method: 'post',
      data
    })
  },
  create(data) {
    return request({
      url: '/v1/outAdd',
      method: 'post',
      data
    })
  },
  archives(id) {
    return request({
      url: `/v1/outArchive/${id}`,
      method: 'get'
    })
  },
  delete(id) {
    return request({
      url: `/v1/outDel/${id}`,
      method: 'get'
    })
  },
  review(data) {
    return request({
      url: '/v1/outReview',
      method: 'post',
      data
    })
  },
  appendParts(data) {
    return request({
      url: '/v1/outAppendParts',
      method: 'post',
      data
    })
  },
  removeParts(data) {
    return request({
      url: '/v1/outRemoveParts',
      method: 'post',
      data
    })
  },
  editParts(data) {
    return request({
      url: '/v1/outEditParts',
      method: 'post',
      data
    })
  }
}
